package cn.juque.systemservice.api.dto.role;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>RoleRelFuncAddDTO</li>
 * </ul>
 * @date 2022-11-20 23:49:58
 **/
@Data
public class RoleRelFuncAddDTO extends AbstractRequestDTO {

    /**
     * 角色ID
     */
    @NotEmpty(message = "角色ID不能为空")
    @Size(message = "角色ID不能超过{max}个字符", max = 32)
    private String roleId;

    /**
     * 功能ID
     */
    @NotEmpty(message = "功能ID不能为空")
    private List<String> funcIdList;
}
